﻿@using System.Security.Claims;

<!DOCTYPE html>

<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="referrer" content="no-referrer" />
    <link rel="icon" href="~/sx.ico" />
    <link href="~/themes/layui/css/layui.css" rel="stylesheet" />
    <link href="~/themes/css/site.css" rel="stylesheet" />
    <link href="~/themes/js/modules/dtree/dtree.css" rel="stylesheet" />
    <link href="~/themes/js/modules/dtree/font/dtreefont.css" rel="stylesheet" />
    <link rel="stylesheet" href="/themes/css/theme/default.css" class="theme-color"
          type="text/css" asp-append-version="true" />
    <script type="text/javascript" src="~/themes/js/modules/vue.js"></script>
    <script src="~/themes/layui/layui.js"></script>
    <script src="~/themes/js/layui-config.js"></script>
    <script src="~/themes/js/lib/signalr/dist/browser/signalr.js"></script>
    <script src="~/themes/js/chat.js"></script>
    <title>@Html.Raw(ViewBag.Title)</title>

    <style type="text/css">
        .layadmin-header {
            height: 40px;
            line-height: 40px;
            margin-bottom: 0;
            margin-left: 220px;
        }

            .layadmin-header .layui-breadcrumb {
                padding: 0 10px;
                height:40px;
            }
    </style>
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header" id="mainapp">
            <div class="layui-logo">
                <a>
                    <img src="~/sx.ico" />
                    <h1>SXF后台管理</h1>
                </a>
            </div>
            @*<ul class="layui-nav layui-layout-left" style="margin-top:40px;margin-left:5px;">
                <li style="font-size:15px;" id="menuroutePath">首 页</li>
            </ul>*@

            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a data-pjax href="/admin/default" @@click="chageRoutePath('首 页')"><i class="layui-icon"></i></a>
                </li>
                <li :class="'layui-nav-item '+[isDown?'show-down':'']" @@click="godown">
                    <a href="javascript:void(0)" id="notificdown"><i id="notificicon" class="layui-icon"></i> </a>
                    @*<div class="layui-downcard down-amimation">
                        <div class="drop-notific-title"><span>你有<strong>{{messCount}}</strong>条提醒</span><a href="">全部</a></div>
                        <div class="mess-item" v-for="(it,index) in messList" v-cloak>
                            <span><i class="layui-icon layui-icon-notice"></i></span>
                            <h5>{{it.title}}</h5>
                            <p>{{it.addDate}}</p>
                        </div>
                    </div>*@
                </li>
                <li :class="'layui-nav-item '+[isThemeShow?'show-down':'']" @@click="selectTheme">
                    <a href="javascript:void(0)" id="themedown">
                        <i id="themeicon"
                           class="layui-icon layui-icon-theme"></i>
                    </a>
                    <div class="layui-downcard down-amimation theme-case">
                        <h3>配色方案</h3>
                        <div class="layui-row">
                            <div class="layui-col-md4">
                                <div class="theme-item" :class="themeName=='default'?'active':''"
                                     data-css="default">
                                    <p>默认</p>
                                    <span class="default"></span>
                                </div>
                            </div>
                            <div class="layui-col-md4">
                                <div class="theme-item" :class="themeName=='bright'?'active':''" data-css="bright">
                                    <p>亮色系</p>
                                    <span class="bright"></span>
                                </div>
                            </div>
                            <div class="layui-col-md4">
                                <div class="theme-item" :class="themeName=='dark'?'active':''" data-css="dark">
                                    <p>暗色系</p>
                                    <span class="dark"></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>



                <li class="layui-nav-item">
                    <a href="javascript:void(0)" @@click="clearCache"><i class="layui-icon layui-icon-fonts-clear"></i>清除缓存</a>
                </li>


                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <span class="username">admin</span>
                        <img src="~/themes/img/avatar.jpg" class="layui-nav-img">
                    </a>
                    <dl class="layui-nav-child">

                        <dd><a data-pjax href="/admin/sysuser/editpwd/">个人中心</a></dd>
                        <hr />
                        <dd><a href="javascript:void(0)" @@click="logout()">退出登录</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-bg-black" id="rmapp">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree fyt-nav-tree layui-hide">
                    <li class="layui-nav-item" v-for="(it,index) in list" v-cloak v-if="it.layer===0">
                        <a class="" href="javascript:;"><i :class="'layui-icon '+it.icon"></i>{{it.name}}</a>
                        <dl class="layui-nav-child">
                            <dd v-for="row in it.children">
                                <a data-pjax :href="row.path" @@click="chageRoutePath(row.namePath)"><i :class="'layui-icon '+row.icon"></i>{{row.name}}</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>


       <div class="layui-card layadmin-header">
           <div class="layui-breadcrumb" style="visibility: visible"; lay-filter="breadcrumb">
               <span style="font-size:14px;color:#999;" id="menuroutePath">首页</span>
           </div>

       </div>




        <div class="layui-body" id="main-container">
            @RenderBody()
        </div>
    </div>

    @*<div class="load-container load8">
        <div class="load-wall">
            <div class="loader">Loading...</div>
        </div>
    </div>*@

    <script type="text/javascript" src="~/themes/js/nprogress.js"></script>
    <script type="text/javascript" src="~/themes/js/layout/main.js"></script>
    @RenderSection("Scripts", required: false)
</body>
</html>
